package com.controller;

import com.entity.HyFurniture;
import com.entity.HyFurnitureWithImage;

import java.util.List;

/**
 * @program: springboot89nep
 * @description:
 * @author: Baiyyy
 * @create: 2025-02-18 08:34
 **/
public class FurniturePageResponse {
    // 当前页的家具列表
    private List<HyFurnitureWithImage> furnitureList;

    // 总页数
    private long totalPages;

    // 总记录数
    private long totalItems;

    // 当前页码 (从1开始)
    private int currentPage;

    // 每页的记录数
    private int pageSize;

    // 构造函数
    public FurniturePageResponse(List<HyFurnitureWithImage> furnitureList, long totalPages, long totalItems, int currentPage, int pageSize) {
        this.furnitureList = furnitureList;
        this.totalPages = totalPages;
        this.totalItems = totalItems;
        this.currentPage = currentPage;
        this.pageSize = pageSize;
    }

    // getters and setters
    public List<HyFurnitureWithImage> getFurnitureList() {
        return furnitureList;
    }

    public void setFurnitureList(List<HyFurnitureWithImage> furnitureList) {
        this.furnitureList = furnitureList;
    }

    public long getTotalPages() {
        return totalPages;
    }

    public void setTotalPages(long totalPages) {
        this.totalPages = totalPages;
    }

    public long getTotalItems() {
        return totalItems;
    }

    public void setTotalItems(long totalItems) {
        this.totalItems = totalItems;
    }

    public int getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }
}
